…is here to help you get started building the QuickDraw GX sample code using Metrowerks. It contains a some tips to help you on your way. You'll probably be able to set things up on your own, but here's how to proceed if you're not quite sure what to do with all this stuff.
Setting up your development environment for Metrowerks
(All of the files mentioned here are in folders within the SDK CD's "Programming Stuff" folder. The suggestions for renaming the folders are merely that-- the names are not critical.)
• Open the "QuickDraw™ GX Interfaces & Libs" folder.
Drag the folder "CIncludes" to the "Headers ƒ" folder within your "Metrowerks C/C++ ƒ" folder.
Rename this folder as "QuickDraw™ GX CIncludes."
Drag the folder "RIncludes" to the "Headers ƒ" folder within your "Metrowerks C/C++ ƒ" folder.
Rename this folder as "QuickDraw™ GX RIncludes."
Drag the folder "PPCLibraries" to the "Libraries ƒ" folder within your "Metrowerks C/C++ ƒ" folder.
Rename this folder as "QuickDraw™ GX PPC Libraries."
Drag the folder "PInterfaces" to the "Interfaces ƒ" folder within your "Metrowerks Pascal ƒ" folder.
Rename this folder as "QuickDraw™ GX PInterfaces."
Drag the folder "PLibraries" to the "Libraries 68K ƒ" folder within your "Metrowerks Pascal ƒ" folder.
Rename this folder as "QuickDraw™ GX PLibraries."
• Open the "QuickDraw™ GX Libraries" folder.
Drag the folder "CIncludes" to the "Headers ƒ" folder within your "Metrowerks C/C++ ƒ" folder.
Rename this folder as "QuickDraw™ GX Lib CIncludes."
Drag the folder "Graphics Libraries" to the "Libraries ƒ" folder in your "Metrowerks C/C++ ƒ" folder.
Rename this folders as "QDGX Graphics Libraries"
Drag the folder "Printing Libraries" to the "Libraries ƒ" folder in your "Metrowerks C/C++ ƒ" folder.
Rename this folders as "QDGX Printing Libraries"
Which universal interfaces?
For consistency, all samples on this CD can be built using the latest Apple universal interfaces on this CD. While the universal interfaces that Metrowerks provides will probably work as well, here's how to set up your interfaces as we did:
• Remove the "Universal Interfaces ƒ" folder from the "Headers ƒ" folder within your
"Metrowerks C/C++ ƒ" folder.
You can just drag this to a higher level for safe keeping in case you want to revert to the Metrowerks interfaces for some
reason.
• Open the "Interfaces & Libraries : Prerelease : Interfaces " folder.
Drag the folder "CIncludes" to the "Headers ƒ" folder within your "Metrowerks C/C++ ƒ" folder.
Rename this folder as "MacOS CD CIncludes."
Drag the folder "RIncludes" to the "Headers ƒ" folder within your "Metrowerks C/C++ ƒ" folder.
Rename this folder as "MacOS CD RIncludes."
Drag the folder "PInterfaces" to the "Interfaces ƒ" folder within your "Metrowerks Pascal ƒ" folder.
Rename this folder as "MacOS CD PInterfaces."
Other requirements
You will also need a "Prefix file" which specifies the following:
#define debugging 1
#ifndef powerc
// The following is required if using Metrowerks 68K (CW4).
// Otherwise, MetroWerks 68K expects (and uses what it thinks are)
// A0 result values instead of D0 ones.
#pragma pointers_in_D0 // Required for c-style toolbox glue.
#endif
Becuase a bug in the ET0 #15 version of "types.h" has been fixed in ETO 16, you no longer need to explicitly typedef float_t and double_t in the prefix. (For most of the Metrowerks samples on this CD, a suitable prefix file called "Prefix.mw68k.h" is provided.)